package com.investment.advisor.dto;

import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
public class TradeDTO {
    private Long id;
    private PortfolioDTO portfolio;
    private FundDTO fund;
    private String action; // 买入、卖出
    private BigDecimal amount; // 交易金额
    private BigDecimal price; // 交易价格
    private BigDecimal shares; // 交易份额
    private LocalDate tradeDate; // 交易日期
    private String status; // 状态：待执行、已完成、已取消
    private String creator; // 创建者
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
} 